﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vds2465Telegrams
{
	public class Telegram_Returning_RESPOND_NDAT : Telegram_Returning_VariableLength
	{
		#region constructor

		public Telegram_Returning_RESPOND_NDAT(eDirection direction, byte address, bool accessDemandFlag, bool dataFlowControlStopFlag, UserDataColl userDataColl)
			: base(direction, address, eTelegramFunction_Returning.RESPOND_NDAT, accessDemandFlag, dataFlowControlStopFlag, userDataColl)
		{
			
		}

		#endregion constructor

		#region ToString, Equals, GetHashCode

		public override int GetHashCode()
		{
			int hashCode = base.GetHashCode();
			return hashCode;
		}

		public override string ToString()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append("(");
			stringBuilder.Append(ToStringProperties());
			stringBuilder.Append(")");

			return stringBuilder.ToString();
		}

		internal override string ToStringProperties()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(base.ToStringProperties());
			
			return stringBuilder.ToString();
		}

		public override bool Equals(object obj)
		{
			Type objType = obj.GetType();
			if (this.GetType() == objType)
			{
				Telegram_Returning_RESPOND_NDAT telegram2Compare = obj as Telegram_Returning_RESPOND_NDAT;
				return EqualsProperties(telegram2Compare);
			}

			return false;
		}

		internal bool EqualsProperties(Telegram_Returning_RESPOND_NDAT telegram2Compare)
		{
			return base.EqualsProperties(telegram2Compare);
		}

		#endregion ToString, Equals, GetHashCode
	}
}
